Class sjl.EnumerationIterator
All Packages Class Hierarchy This Package Previous Next Index
Class sjl.EnumerationIterator
java.lang.Object
|
+----sjl.EnumerationIterator
- public class EnumerationIterator
- extends Object
- implements Enumeration
EnumerationIterator
is an iterator adapter that turns a
range of forward iterators into an Enumeration
.
Copyright © 1996 Finn Bock
-
EnumerationIterator(ForwardIterator, ForwardIterator)
- Contruct an Enumeration over the specified range.
-
hasMoreElements()
- Returns true if the enumeration contains more elements; false
if its empty.
-
nextElement()
- Returns the next element of the enumeration.
EnumerationIterator
public EnumerationIterator(ForwardIterator first,
ForwardIterator last)
- Contruct an Enumeration over the specified range.
- Parameters:
- first - The beginning of the range.
- last - The end of the range.
hasMoreElements
public boolean hasMoreElements()
- Returns true if the enumeration contains more elements; false
if its empty.
nextElement
public Object nextElement()
- Returns the next element of the enumeration. Calls to this method
will enumerate successive elements.
All Packages Class Hierarchy This Package Previous Next Index